How tectonic plates are formed